#include "MapToolEmitPoint.h"
#include <TGS/GeoMath2.0/Point.h>
#include <QMouseEvent>

namespace TGS{
namespace MapControl{




MapToolEmitPoint::MapToolEmitPoint( MapCanvas* canvas )
    : MapTool( canvas )
{
}

void MapToolEmitPoint::canvasMoveEvent( QMouseEvent * e )
{
  Q_UNUSED( e );
}

void MapToolEmitPoint::canvasPressEvent( QMouseEvent * e )
{
  Point pnt = toMapCoordinates( e->pos() );
  emit canvasClicked( pnt, e->button() );
}

void MapToolEmitPoint::canvasReleaseEvent( QMouseEvent * e )
{
  Q_UNUSED( e );
}

}//MapControl
}//TGS